﻿namespace NetFx.SMIL.Definitions
{
  using System;
  using System.Text;
  using System.Collections;

  using System.Reflection;
  using System.Reflection.Emit;
  using System.Runtime.InteropServices;

  using System.Diagnostics;
  using System.Diagnostics.CodeAnalysis;
  using System.Diagnostics.SymbolStore;
  using System.Security;
  using System.Security.Permissions;

  using NetFx.MSIL;
  using NetFx.MSIL.Headers;

  public class EventDefinition : ComplexDefinition
  {
    #region Statics
    public static EventDefinition of(string name)
    {
      return new EventDefinition(name);
    }
    #endregion
    #region Fields
    protected string eventType;
    protected string addonMethod;
    protected string removeonMethod;
    protected string raiseMethod;
    #endregion
    #region Properties
    public virtual EventHeader InstanceHeader
    {
      get
      {
        return this.header as EventHeader;
      }
    }
    public virtual EventAttributes Attributes
    {
      get
      {
        return this.InstanceHeader.Attributes;
      }
      set
      {
        this.InstanceHeader.Attributes = value;
      }
    }
    public virtual string EventType
    {
      get
      {
        return this.eventType;
      }
      set
      {
        this.eventType = value;
      }
    }
    public virtual string AddonMethod
    {
      get
      {
        return this.addonMethod;
      }
      set
      {
        this.addonMethod = value;
      }
    }
    public virtual string RemoveonMethod
    {
      get
      {
        return this.removeonMethod;
      }
      set
      {
        this.removeonMethod = value;
      }
    }
    public virtual string RaiseMethod
    {
      get
      {
        return this.raiseMethod;
      }
      set
      {
        this.raiseMethod = value;
      }
    }

    #endregion
    #region Constructors
    public EventDefinition(string name)
      : this(EventHeader.of(name))
    {

    }
    public EventDefinition(EventHeader header)
      : base(header)
    {

    }
    #endregion
    #region Methods
    protected override void Resolve(ComplexDefinition container)
    {

    }
    #endregion
  }

}